﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NetWebControl.ControlTest.OA
{
    public partial class Show_Master : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ControlTest.Users_Roles role = new Users_Roles();
            this.EntityShowPanel1.Entity = role;
            this.EntityShowPanel1.RequestKey = "Id";
            this.EntityShowPanel1.IsEncryptKey = false;
            //this.EntityShowPanel1.ControlIdStart = "Entity_";
            this.EntityShowPanel1.IsAutoCreate = false;



            this.EntityShowPanel1.GetControlEvent+= (form) =>
            {
                return ContentPlaceHolder1.FindControl(form.Db_Field_Name);
            };
        }
    }
}